package linked_list;

public class Main {
    public static void main(String[] args) {
        List<String> list = new LinkedList<>();
        list.add("A");
        list.addFirst("B");
        list.addLast("C"); // BAC
        list.printLinkList();
        list.addFirst("D");// DBAC
        list.remove("B");// DAC
        list.printLinkList();

    }
}
